<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <title>修改密码</title>
    <link rel="icon" href="/images/favicon.ico" sizes="32x32" />
    <link rel="stylesheet" href="/css/font.css">
    <link rel="stylesheet" href="/css/xadmin.css">
    <link rel="stylesheet" href="/css/pg_btn.css">
    <script type="text/javascript" src="./js/jquery-1.3.2.min.js"></script>
    <script src="lib/layui/layui.js"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script>alert("验证码已发送到您邮箱，请注意查看")</script>
    <meta charset="UTF-8">
    <script>
        function check2pwd() {
            if(input1.value != input2.value) {
                alert("两次输入密码不一致！")
                input1.value = "";
                input2.value = "";
            }
        }
        function checkcode() {
            if(code.value=="") {
                alert("验证码不能为空！")
            }
        }
    </script>
</head>

<body>
<div class="x-body">
    <form class="layui-form" action="/ChangePassword" method="post"  id="f_auto" accept-charset="UTF-8">
        <div class="layui-form-item">
            <label for="code" class="layui-form-label">
                <span>邮箱验证码</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" name="EmailCode" id="code" onblur="checkcode()"   class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="input1" class="layui-form-label">
                <span>密码</span>
            </label>
            <div class="layui-input-inline">
                <td><input type="password" name="password1"  id="input1"  class="layui-input"></td>
            </div>
        </div>


        <div class="layui-form-item">
            <label for="input2" class="layui-form-label">
                <span>确认密码</span>
            </label>
            <div class="layui-input-inline">
                <input type="password" name="password2"  id="input2" onblur="check2pwd()"  class="layui-input">
            </div>
        </div>


        <div class="layui-form-item" id="btn_xg">
            <button  class="layui-btn"  id="btn_on" lay-filter="updateForm" lay-submit="">
                修改密码
            </button>
        </div>
    </form>
</div>
</body>
</html>